// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .CS}

//-------------MAIN---------------
thread 'GANG1'

0AC6: 18@ = label @EF226E625122F598B0606058 offset 
0AC6: 19@ = label @A4860F3CD69E267AFEA58335 offset
0AF1: write_int 0 to_ini_file "CLEO\POZIT.INI" section "UNLOAD" key "KEY" 
01F0: set_max_wanted_level_to 0 //disable cops
var
23@:int
29@:int
end

wait 0 
Model.Load(#GUN_DILDO1)
Model.Load(#GUN_DILDO2)
Model.Load(#GUN_VIBE1)
Model.Load(#GUN_VIBE2)
Model.Load(#FLOWERA)
Model.Load(#GUN_CANE)
Model.Load(#BRASSKNUCKLE)
Model.Load(#GOLFCLUB)
Model.Load(#NITESTICK)
Model.Load(#KNIFECUR)
Model.Load(#BAT)
Model.Load(#SHOVEL)
Model.Load(#POOLCUE)
Model.Load(#KATANA)
Model.Load(#CHNSAW)
Model.Load(#NVGOGGLES)
Model.Load(#IRGOGGLES)
Model.Load(#GUN_PARA)
Model.Load(#CAMERA)
Model.Load(#FIRE_EX)
Model.Load(#AK47)
Model.Load(#M4)
Model.Load(#SNIPER)
Model.Load(#cuntGUN)
Model.Load(#MICRO_UZI)
Model.Load(#SHOTGSPA)
Model.Load(#TEC9)
Model.Load(#MP5LNG)
Model.Load(#SAWNOFF)
Model.Load(#COLT45)
Model.Load(#SILENCED)
Model.Load(#DESERT_EAGLE)
Model.Load(#CHROMEGUN)
Model.Load(#SPRAYCAN)
Model.Load(#HEATSEEK)
Model.Load(#ROCKETLA)
Model.Load(#MINIGUN)
Model.Load(#FLAME)
Model.Load(#GRENADE)
Model.Load(#TEARGAS)
Model.Load(#MOLOTOV) 
038B: load_requested_models 

            
            22@ = 0
            23@ = 1
            24@ = 30
            26@ = 30
            27@ = 100
            29@ = 3
            28@ = 60
            20@ = 0
            14@ = 25
            
//continue
:if_next2
wait 500
for 20@ = 0 to 79 step 4
    0208: 3@ = random_float_in_ranges 1.0 70.0 
    0208: 4@ = random_float_in_ranges 100.0 200.0 
    04C4: store_coords_to 5@ 6@ 7@ from_actor $PLAYER_ACTOR with_offset 3@ 4@ 1.0 
    04D3: get_nearest_car_path_coords_from 5@ 6@ 7@ type 2 store_to 5@ 6@ 7@
    0209: 12@ = random_int_in_ranges 102 127
     
    if 
         12@ == 119 
    then
        12@ += 1 
    end
    Model.Load(12@)
    038B: load_requested_models 
    wait 100 
    8@ = Actor.Create(Gang1, 12@, 5@, 6@, 7@)
    Actor.Angle(8@) = 88.36082
    Actor.Health(8@) = 27@
    0209: 25@ = random_int_in_ranges 22 14@
    Actor.GiveWeaponAndAmmo(8@, 25@, 99999)
    11@ = Marker.CreateAboveActor(8@)
    Marker.SetIconSize(11@, 2)
    Marker.SetColor(11@, 13@)
    07DD: set_actor 8@ attack_rate 26@ // previously known as temper_to 
    Actor.WeaponAccuracy(8@) = 24@
    077A: set_actor 8@ acquaintance 4 to_actors_pedtype 0 // see ped.dat 
    05E2: AS_actor 8@ kill_actor $PLAYER_ACTOR
    0A8E: 16@ = 18@ + 20@ 
    0A8E: 17@ = 19@ + 20@ 
    0A8C: write_memory 16@ size 4 value 8@ virtual_protect 0
    0A8C: write_memory 17@ size 4 value 11@ virtual_protect 0
end

while true
    wait 0
    20@ += 4         
    if 20@ > 79      
    then 20@ = 0             
    end              
    0A8E: 16@ = 18@ + 20@                                                                                             
    0A8E: 17@ = 19@ + 20@                                                                                                 
    0A8D: 8@ = read_memory 16@ size 4 virtual_protect 0                                                                   
    0A8D: 11@ = read_memory 17@ size 4 virtual_protect 0                                                                  
    if not actor.Dead(8@)                                                                                                                      
        then                                                                                                                  
        else if 056D:   actor 8@ defined                                                                                  
        then                                                                                                              
            Actor.RemoveReferences(8@)                                                                                    
            wait 100                                                                                                      
            actor.DestroyInstantly(8@)                                                                                    
            22@ += 1                                                                                                      
        end                                                                                                               
    end                                                                                                                   
    if 23@ > 29@ // (int)                                                                                                                  
    then                                                                                                                  
        01E3: show_text_1number_styled GXT 'M_PASS' number 100000 time 5000 style 1  // MISSION PASSED!~n~~w~$~1~         
        Player.Money($PLAYER_CHAR) += 100000                                                                              
        Player.ClearWantedLevel($PLAYER_CHAR)                                                                             
        goto @clean2                                                                                                      
    end                                                                                                                   
    0AF0: 9@ = get_int_from_ini_file "CLEO\POZIT.INI" section "0xeta" key "KEY"                                       
    if or                                                                                                                 
        9@ == 1                                                                                                           
        0741:   actor $PLAYER_ACTOR busted                                                                                
        wasted_or_busted                                                                                                  
        Player.Wasted(0)                                                                                                  
        $ONMISSION == 1                                                                                                   
    then                                                                                                                  
        0ACD: show_text_highpriority "~r~~H~mission failed" time 9000                                                     
                                    
        goto @clean2                                                                                                       
    end                                                                                                                   
    if 22@ >= 20                                                                                                                      
    then                                                                                                                  
        23@ += 1                                                                                                          
        24@ += 10                                                                                                         
        if not 14@ >= 38                                                                                                  
        then 14@ += 2 //upgrade weapon id                                                                                                               
        end                                                                                                               
        26@ += 10                                                                                                         
        27@ += 10                                                                                                         
        22@ = 0                                                                                                           
        00BA: show_text_styled GXT 'GWARN' time 5000 style 1                                                              
        0ACD: show_text_highpriority "~Y~~H~WAIT TO NEXT WAVE" time 9000                                                  
        Player.Money($PLAYER_CHAR) += 1000                                                                                
        if 23@ > 29@ // (int)                                                                                                                
        then 0@ = 1                                                                                                             
        end                                                                                                               
        goto @if_next2                                                                                                     
    end                                                                                                                   
end

:clean2
01F0: set_max_wanted_level_to 6 //disable cops
for 20@ = 0 to 79 step 4
    0A8E: 16@ = 18@ + 20@ // label offset + item offset
    0A8E: 17@ = 19@ + 20@ // label offset + item offset
    0A8D: 8@ = read_memory 16@ size 4 virtual_protect 0
    0A8D: 11@ = read_memory 17@ size 4 virtual_protect 0
    if 056D:   actor 8@ defined 
    then   
        Actor.RemoveReferences(8@)
        actor.DestroyInstantly(8@)
    end
end
end_thread

:EF226E625122F598B0606058
hex 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
end

:A4860F3CD69E267AFEA58335
hex 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
end